// File generated from our OpenAPI spec by Stainless.

package com.metest.api.services.blocking.rest.actuator

import com.metest.api.TestServerExtension
import com.metest.api.client.okhttp.MetestOkHttpClient
import com.metest.api.models.rest.actuator.loggers.LoggerUpdateParams
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

@ExtendWith(TestServerExtension::class)
internal class LoggerServiceTest {

    @Disabled("Prism tests are disabled")
    @Test
    fun retrieve() {
        val client =
            MetestOkHttpClient.builder()
                .baseUrl(TestServerExtension.BASE_URL)
                .apiKey("My API Key")
                .build()
        val loggerService = client.rest().actuator().loggers()

        val logger = loggerService.retrieve("name")

        logger.validate()
    }

    @Disabled("Prism tests are disabled")
    @Test
    fun update() {
        val client =
            MetestOkHttpClient.builder()
                .baseUrl(TestServerExtension.BASE_URL)
                .apiKey("My API Key")
                .build()
        val loggerService = client.rest().actuator().loggers()

        loggerService.update(
            LoggerUpdateParams.builder().name("name").body(LoggerUpdateParams.Body.TRACE).build()
        )
    }

    @Disabled("Prism tests are disabled")
    @Test
    fun list() {
        val client =
            MetestOkHttpClient.builder()
                .baseUrl(TestServerExtension.BASE_URL)
                .apiKey("My API Key")
                .build()
        val loggerService = client.rest().actuator().loggers()

        val loggers = loggerService.list()

        loggers.validate()
    }
}
